function [ imageRGB ] = showRGBImage( image,RGBBand )
% showRGBImage  show and return the RGB image of the original remote sensing image
%
% Read a remote sensing image and the RGB bands number
% Extract the three bands from the original image corresponding to RGB respectively.
% imageRGB=showRGBImage(image,RGBBand)
% 
% Input:
% 
% image: the original remote sensing image
% RGBBand: a [3,1] matrix of RGB band number
% RGBBand(1): the number of red band; RGBBand(2): the number of green band;
% RGBBand(2): the number of blue band
% 
% Output:
% imageRGB: the RGB image of the original remote sensing image
%%%%%%%%%%%%%%%%%%%%
imageSize=size(image);
imageRGB=zeros(imageSize(1),imageSize(2),3);
imageRGB(:, :, 1)=image(:, :, RGBBand(1));
imageRGB(:, :, 2)=image(:, :, RGBBand(2));
imageRGB(:, :, 3)=image(:, :, RGBBand(3));
figure();
imshow(imageRGB,[]);
end

